<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">

								<div class="col-sm-3">
									<input id="projectId" name="projectId" class="form-control" type="hidden" th:value="${projectId}">
								</div>
							</div>
                            <div class="form-group">
								<label class="col-sm-3 control-label">用户：</label>
								<div class="col-sm-3">
									<input id="userId" name="userId" class="form-control" type="hidden">
									<div class="dropdown">
										<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenu2"
												data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"
										>
											请选择用户
											<span class=" caret"></span>
										</button>
										<ul class="dropdown-menu bg-info" style="background-color: #e5ffff;">
											<li th:each="user : ${users}"><a href="#"  th:onclick="'javascript:catclick2(\''+${user.userId}+'\', \''+${user.name}+'\');'">[[${user.name}]]</a>
											</li>



										</ul>
									</div>
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/system/userInner/add.js">
	</script>
	<script type="text/javascript">

        function catclick(catId, catName) {
            $("#dropdownMenu1").text(catName);
            $("#projectId").val(catId);

        }
        function catclick2(catId, catName) {
            $("#dropdownMenu2").text(catName);
            $("#userId").val(catId);

        }
	</script>
</body>
</html>
